#include "settingwidget.h"
#include "ui_settingwidget.h"

settingwidget::settingwidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::settingwidget)
{
    ui->setupUi(this);
    connect(ui->radioButton,&QRadioButton::clicked,this,[=](){
        emit setADBlock(ui->radioButton->isChecked());
    });
    connect(ui->comboBox,&QComboBox::currentIndexChanged,this,[=](){
        emit setUA(ui->comboBox->currentIndex());
    });

}

settingwidget::~settingwidget()
{
    delete ui;
}
